// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 范围分页  POST */
export async function pageVoteRange(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<AssessWeekEmphasizeVoteData.RangePage[]>>(
    '/assess/week/emphasize/vote/range/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 保存 投票 过程  POST */
export async function saveVoteRange(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/vote/range/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 更新 投票 范围 状态  POST */
export async function updateVoteRangeState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/vote/range/update/state', {
    method: 'POST',
    data: options || {},
  });
}

/** 分页 初始化  POST */
export async function voteRangeInit(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeVoteData.RangeInit>>(
    '/assess/week/emphasize/vote/range/init',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 投票过程保存  POST */
export async function saveVoteProcess(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/vote/process/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 查询 投票 过程  POST */
export async function selectVoteProcess(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/vote/process/select', {
    method: 'POST',
    data: options || {},
  });
}

/** 查询 投票 结果   POST */
export async function rankVoteResult(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeVoteData.ResultRank[]>>(
    '/assess/week/emphasize/vote/result/rank',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 查询 投票 结果 分析  POST */
export async function rankVoteResultAnalysis(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeVoteData.Analysis>>(
    '/assess/week/emphasize/vote/result/analysis',
    {
      method: 'POST',
      data: options || {},
    },
  );
}


/** 查询 投票 结果 分析  POST */
export async function listVoteProcess(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeVoteData.AssessEmphasizeVoteProcessListItem[]>>(
    '/assess/week/emphasize/vote/process/list',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 导出 投票确认  POST */
export async function exportVoteProcess(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>(
    '/assess/week/emphasize/vote/process/export/excel',
    {
      method: 'POST',
      data: options || {},
      responseType: 'blob',
    },
  );
}


/** 导出 投票结果  POST */
export async function exportVoteRank(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>(
    '/assess/week/emphasize/vote/result/rank/export/excel',
    {
      method: 'POST',
      data: options || {},
      responseType: 'blob',
    },
  );
}
